Rotate logs and backup database on deployed gateways - #140
Merged
Conversation
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 16, 2026 15:37
0853e7f to
e7afa66
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 16, 2026 15:42
e7afa66 to
393d846
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 16, 2026 16:03
393d846 to
a4a24c4
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 17, 2026 07:57
a4a24c4 to
e728ea5
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
3 times, most recently
from
June 17, 2026 16:55
3dcae60 to
032bff2
Compare
steventux
marked this pull request as ready for review
June 17, 2026 16:57
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 24, 2026 09:13
048806b to
c0d184c
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 24, 2026 09:37
c0d184c to
502eed0
Compare
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 24, 2026 10:13
f246e23 to
24b402f
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
steventux
force-pushed
the
DTOSS-13124-rotate-gateway-logs
branch
from
June 24, 2026 10:21
24b402f to
801ce7c
Compare
carlosmartinez
previously approved these changes
Jun 24, 2026
Contributor
Author
|
@carlosmartinez I have retested all 3 scheduled tasks on the review gateway VM and everything works as expected. I've pushed an additional commit to rename db backup function. Would you re-approve please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Rotate logs and backup databases on Windows VMs
Sets up a daily schedule to rotate logs at 2:30AM. 5 rotated logfiles for each service are retained.
Sets up a weekly schedule to backup databases every Sunday at 2AM. A default 5 backups are retained.
The PACS database backup also creates a zip archive of PACS directories and files from
data\storage\*then deletes the contents of the directory. The zip is overwritten each time but this means we retain a week of PACS data + db.Scheduled Tasks on Gateway VM
Jira link
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13124
Review notes
Best to review via RDP from the azure portal, you should see the scheduled tasks on the gateway and evidence of logs and db rotation.
Review checklist